package Test;

import java.sql.SQLException;
import java.util.ArrayList;

import DB.BddManager;


public class TestDB {

	/**
	 * @param args
	 * @throws SQLException 
	 */
	public static void main(String[] args) throws SQLException {
		BddManager bddManager = BddManager.getInstance();
		bddManager.connectBdd();
		/*bddManager.printBdd();
		System.out.println(bddManager.existeInBDD("Essai", "D1"));
		//System.out.println(bddManager.getPonderation("Essai2", "D1"));
		//bddManager.ajouterPonderation("Essai", "D1", 147);
		System.out.println("TEST Traiter MOT");
		bddManager.printBdd();
		bddManager.traiter_mot("fdsohsfd", "D1", "h");*/
		////
		ArrayList<String > requete = new ArrayList<String>();
		requete.add("Accident");
		requete.add("892");
		
		//ArrayList<Integer> testPonderation = bddManager.getVecteurPonderation(requete, "D2.html");
		//System.out.println(testPonderation.toString());
	}

}
